package com.java.service;

import com.java.model.AdvertisersAccount;
import com.java.model.AdvertisersWallet;
import com.java.model.Result;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;

public interface AdvertisersAccountService extends BaseService<AdvertisersAccount> {

    /**
     * 短信验证
     * @param phoneNum
     * @return
     */
    Result message(String phoneNum);

    /**
     * 广告主的启用禁用
     * @param ids
     * @param status
     * @return
     */
    Result updateStatus (int[] ids, String status);

    /**
     * 查找广告主钱包信息
     * @param advertisersAccount
     * @return
     */
    Result wallet(AdvertisersAccount advertisersAccount);

    /**
     * 根据手机号查询该广告主信息
     * @param id
     * @return
     */
    AdvertisersAccount walletList(Integer id);

    /*根据id查询某某的账户*/
    AdvertisersAccount recharge(int id);


    /*给账号充值*/
    Result money(AdvertisersWallet advertisersWallet);


    /*修改冻结金额*/
    Result frozen(AdvertisersWallet advertisersWallet);

    /*添加广告主钱包账号*/
    Result addRecharge(AdvertisersWallet advertisersWallet);

    /**
     * 广告主登录
     * @param advertisersAccount
     */
    Result advertisingLogin(AdvertisersAccount advertisersAccount, HttpServletRequest request);


    /*修改可用余额*/
    Result advertisersWalletModify(AdvertisersWallet advertisersWallet);

    /**
     * 广告主金额充值
     */
    Result addAmount(AdvertisersAccount advertisersAccount);

}
